/* 现代化资料分享页面样式 */

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* 主容器 */
.modern-material-container {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.modern-material-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

/* 现代化头部 */
.modern-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 内容包装器 */
.content-wrapper {
  position: relative;
  z-index: 1;
  padding: 20px;
  padding-bottom: 80px;
}

/* 现代滚动区域 */
.modern-scroll {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-right: 10px;
}

.modern-scroll::-webkit-scrollbar {
  width: 6px;
}

.modern-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modern-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.modern-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 现代资料卡片 */
.material-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.material-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.material-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.material-item:hover::before {
  transform: scaleX(1);
}

.material-item:active {
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片头部 */
.item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.icon-text {
  font-size: 24px;
}

.item-title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}

/* 卡片内容 */
.item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.info-label {
  font-size: 14px;
  color: #718096;
  font-weight: 500;
}

.info-value {
  font-size: 16px;
  color: #2d3748;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.info-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 8px 0;
}

/* 分享文本框 */
.share-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #2d3748;
  background: rgba(255, 255, 255, 0.8);
  resize: vertical;
  transition: all 0.3s ease;
  font-family: inherit;
}

.share-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.share-textarea::placeholder {
  color: #a0aec0;
  font-size: 14px;
}

.textarea-placeholder {
  color: #a0aec0;
  font-size: 14px;
}

/* 操作按钮区域 */
.action-section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.action-button:hover::before {
  left: 100%;
}

.action-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.action-button.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-button.secondary {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.action-text {
  font-weight: 600;
  font-size: 16px;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: rgba(255, 255, 255, 0.8);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 16px;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 15px;
    padding-bottom: 70px;
  }
  
  .material-item {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .item-title {
    font-size: 16px;
  }
  
  .item-icon {
    width: 40px;
    height: 40px;
  }
  
  .icon-text {
    font-size: 20px;
  }
  
  .info-value {
    font-size: 14px;
    max-width: 50%;
  }
  
  .share-textarea {
    min-height: 100px;
    padding: 12px;
    font-size: 14px;
  }
  
  .action-button {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding: 10px;
    padding-bottom: 60px;
  }
  
  .material-item {
    padding: 14px;
    margin-bottom: 14px;
  }
  
  .item-icon {
    width: 36px;
    height: 36px;
  }
  
  .icon-text {
    font-size: 18px;
  }
  
  .item-title {
    font-size: 15px;
  }
  
  .info-label {
    font-size: 13px;
  }
  
  .info-value {
    font-size: 13px;
    max-width: 45%;
  }
  
  .share-textarea {
    min-height: 80px;
    padding: 10px;
    font-size: 13px;
  }
  
  .action-button {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .action-section {
    margin-top: 20px;
  }
}

/* 动画延迟 */
.material-item:nth-child(1) { animation-delay: 0.1s; }
.material-item:nth-child(2) { animation-delay: 0.2s; }
.material-item:nth-child(3) { animation-delay: 0.3s; }
.material-item:nth-child(4) { animation-delay: 0.4s; }
.material-item:nth-child(5) { animation-delay: 0.5s; }